SELECT col7 , LAG(col7) OVER(PARTITION BY col7 ORDER BY col7) LAG_col7 FROM "allTypsUniq.parquet"